<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<form> 
	<table class="rowTable" cellspacing="0" >
		<tr class="subTitle">
			<td colspan="4"><h4 class="subTitle"><span>고객 정보</span></h4></td>
		</tr>
		<tr>
			<th>고객명 </th>
			<td>
				<input type="text" name="cust_name" id="cust_nm" /></td>
			<th>고객종류</th>
			<td><span id="cust_kind_list"></span></td>
		</tr>
		<tr>
			<th>주민번호</th>
			<td>
				<input type="text">-
				<input type="text">
			</td>
			<th>사업자번호</th>
			<td>
				<input type="text">
			</td>
		</tr>
		<tr>
			<th>주소</th>
			<td colspan="3">
				<input type="text" name="zipcd" id="zipcd" size="4" readonly />
				<input type="text" name="addr" id="addr" size="80" readonly />
				<span class="button black"><button type="button" class="addr_search">검색</button></span>
			</td>
		</tr>
		<tr>
			<th>전화</th>
			<td>
				<input type="text" />
				<font color="blue">* 02-000-0000</font>
			</td>
			<th>핸드폰</th>
			<td> 
				<input type="text" />
				<font color="blue">* 010-000-0000</font>
			</td>
		</tr>	
		<tr>						
			<th>이메일</th>
			<Td> 
				<input type="text" />
			</td>
			<th> 고객인증 </th>
			<td> 		
				<select name="cust_auth_cd" id="cust_auth_cd"></select>
				<input type="text">
			</td>
		</tr>
		<tr>
			<th>유치자</th>
			<td>
				<select>
					<option value="">:: 회사 선택::</option>
					<option value="00001">한빛텔레콤</option>
					<option value="00002">봉구통신</option>
					<option value="00003">미주통신</option>
					<option value="00004">고창대리점</option>
					<option value="00005">서울대리점</option>
					<option value="a0004">광주대리점</option>
					<option value="D0030">LG U+대리점</option>
					<option value="H0001"  selected>하이텔랜드</option>
				</select>
				<select>
					<option value="">::: 유치자 :::</option>
					<option value="test" selected>관리자</option>
					<option value="dhrruddl">관리팀장</option>
					<option value="wkdehdrjs">영업팀장</option>
					<option value="rlagmltjs">청약담당</option>
				</select>
			</td>	
			<th>상부점</th>
			<td>
				<select>
					<option value="0">:: 회사 선택::</option> 
					<option value="a0005">KTF</option>
					<option value="A0006">LGT 지사</option>
					<option value="A0007">SKT 지사</option>
					<option value="D0032">해운대지사</option>
					<option value="D0033">여의도지사</option>
					<option value="D0034">서울지사</option>
					<option value="D0036">영진</option>
					<option value="D0037">천호</option>
					<option value="H0001">하이텔랜드</option>
				</select>
				<span class="button black"><button type="button">111</button></span>
				<span class="button black"><button type="button">222</button></span>
			</td>
		</tr>
		<tr>
			<th>상담원</th>
			<td colspan="3"><input type="text" /></td>	
		</tr>
		<tr>
			<td colspan="4">
				<h4 class="subTitle"><span>배송지정보</span></h4>
			</td>
		</tr>
		<tr>
			<th>배송지 주소</th>
			<td colspan="3">
				<input type="text" name="ship_zipcd" id="ship_zipcd" size="4" readonly />
				<input type="text" name="ship_addr" id="ship_addr" size="80" readonly />
				<span class="button black"><button type="button" class="ship_addr_search">검색</button></span>
				<input type="checkbox" id="address_same" />
				<span class="blue"><label for="address_same">* 위 주소정보와 동일</label></span>
			</td>		
		</tr>
		<tr>
			<th>배송정보</th>
			<td>
				<select>
					<option value=""> 배송사 선택 </option>
					<option value="19">건영택배</option>
					<option value="31">경동택배</option>
					<option value="16">고려택배</option>
					<option value="22">굿모닝택배</option>
					<option value="30">네덱스택배</option>
					<option value="27">대신택배</option>
					<option value="4">대한통운</option>
					<option value="18">동부익스프레스</option>
					<option value="26">동원택배</option>
					<option value="9">로엑스택배(아주택배)</option>
					<option value="7">로젠택배</option>
					<option value="20">사가와익스프레스</option>
					<option value="12">삼성전자 직배송</option>
					<option value="23">세덱스택배</option>
					<option value="11">옐로우캡</option>
					<option value="2">우체국택배</option>
					<option value="8">우편등기</option>
					<option value="29">이노지스택배</option>
					<option value="28">일양택배</option>
					<option value="15">직배송</option>
					<option value="21">천일택배</option>
					<option value="17">하나로택배</option>
					<option value="5">한진택배</option>
					<option value="10">현대택배</option>
					<option value="25">호남화물택배</option>
					<option value="1">CJ GLS</option>
					<option value="6">CJ HTH 택배</option>
					<option value="3">ECLINE</option>
					<option value="14">EMS</option>
					<option value="13">KGB택배</option>
					<option value="24">WIZWID</option>
				</select>
				송장번호<input type="text" />
			</td>
			<th>배송날짜 </th>
			<td>
				<input type="text" name="ship_date" id="ship_date" readonly />
				<span class="button black"><button type="button" id="ship_date_btn">달력</button></span>
			</td>		
		</tr>
		<tr>
			<th>택배비용</th>
			<td> 
				<input type="text" />원			
				<span class="blue">( 대리점에서 보낸 </span>
				<span class='red'>선불</span><span class='blue'> 택배비 )</span>
			</td>
		</tr>
		<tr class="subTitle">
			<td colspan="4"><h4 class="subTitle"><span>신청상품</span></h4></td>
		</tr>
		<tr>
			<th>상품선택</th>
			<td>
				<select name="telco_cd" id="telco_cd"></select>
				<select>
					<option value="">제조사 선택</option>
				</select>
				<select>
					<option value="0">모델명 </option>
				</select>
			</td>
			<th>상품 색상</th>
			<td>
				<input type="text" />
			</td>
		</tr>		
		<tr>
			<th>구매 유형</th>
			<td><span id="buy_type_list"></span></td>
			<th>접수일자</th>
			<td>
				<input type="text" name="input_dttm" id="input_dttm" readonly />
				<span class="button black"><button type="button" id="input_dttm_btn">달력</button></span>
				<select>
					<option value="0" >0시 </option>
					<option value="14">14시 </option>
				</select>
				<select>
					<option value="00">00분 </option>
					<option value="01">01분 </option>
					<option value="02">02분 </option>
					<option value="58">58분 </option>
					<option value="59">59분 </option>
				</select>
			</td>
		</tr>
		<tr>
			<th>청약 유형</th>
			<td>
				<select>
					<option value="">청약유형</option>
				</select>
			</td>				
			<th>요금제</th>
			<td>
				<select>
					<option value=""> 요금제 선택 </option>
				</select>
			</td>
		</tr>
		<tr>
			<th>상품 약정</th>
			<td>
				<select>
					<option value="0">약정선택</option>           
				</select>
			</td>
			<th>개통일자</th> 
			<td>
				<input type="text" name="open_dt" id="open_dt" readonly />
				<span class="button black"><button type="button" id="open_dt_btn">달력</button></span>
				<select>
					<option value="21">21시 </option>
					<option value="22">22시 </option>
					<option value="23">23시 </option>
				</select>
				<select>
					<option value="57">57분 </option>
					<option value="58">58분 </option>
					<option value="59">59분 </option>
				</select>
			</td>
		</tr>
		<tr>
			<th>가입비</th>
			<td>
				<select name="init_cd" id="init_cd"></select>
				<input type="text" name="init_amt" id="init_amt" />원				
			</td>
			<th>개통 상태</th>
			<td><select name="open_stat_cd" id="open_stat_cd"></select></td>
		</tr>
		<tr>
			<th>채권료</th>
			<td>
				<select name="receiv_cd" id="receiv_cd"></select>
				<input type="text" name="receiv_amt" id="receiv_amt" />원	
			</td>
			<th>단말기 일련번호</th>
			<td>
				<input type="text" />
			</td>
		</tr>
		<tr>
			<th>확정 번호</th>
			<td>
				<input type="text" >
			</td>
			<th>가입서비스번호</th>
			<td> 
				<input type="text" />
			</td>
		</tr>
		<tr>
			<th>휴대폰 할부기간</th>
			<td> 
				<input type="text" />개월약정할인금액
				<input type="text" />원
			</td>
			<th>실판매가(할부원금)</th>
			<td><input type="text" />원 </td>
		</tr>
		<tr>
			<th>유심 정보</th>
			<td>
				<select name="usim_cd" id="usim_cd"></select>
				유심번호<input type="text" name="usim_no" id="usim_no" />
				유심비<input type="text" name="usim_amt" id="usim_amt" />원
			</td>
			<th>개통희망일</th>
			<td>
				<input type="text" name="openhope_dt" id="openhope_dt" readonly />
				<span class="button black"><button type="button" id="openhope_dt_btn">달력</button></span>
			</td>
		</tr>
		<tr>
			<th>월 할인금액</th>
			<td><input type="text" />원</td>
			<th>해약일자</th>
			<td>
				<input type="text" name="cancel_dt" id="cancel_dt" readonly />
				<span class="button black"><button type="button" id="cancel_dt_btn">달력</button></span>
			</td>
		</tr>
		<tr>
			<th>부가서비스</th>
			<td colspan="3">
				<div id="disdate"></div>	
			</td>
		</tr>
		<tr id="buyType1" class="subTitle">
			<td colspan="4"><h4 class="subTitle"><span>신규가입</span></h4></td>
		</tr>
		<tr id="buyType1">
			<th> 희망 번호 </th>
			<td colspan="3">
				010 - <input type="text" />-
				(1)<input type="text" />
				(2)<input type="text" />
				(3)<input type="text" />(끝번호 4자리)
			</td>
		</tr>
		<tr id="buyType2">
			<td colspan="4"><h4 class="subTitle"><span>번호이동</span></h4></td>
		</tr>
		<tr id="buyType2">
			<th> 사용중인 통신사 </th>
			<td><select name="move_telco" id="move_telco"></select></td>
			<th>사용중인 휴대폰</th>
			<td><input type="text" name="move_phoneno" id="move_phoneno" /></td>
		</tr>
		<tr id="buyType2">
			<th> 번호이동인증</th>
			<td colspan="3"> 
				<select name="move_auth_cd" id="move_auth_cd"></select>
				인증번호<input type="text" name="move_auth" id="move_auth" />
			</td>
		</tr>
		<tr id="buyType3">
			<td colspan="4"><h4 class="subTitle"><span>기기변경</span></h4></td>
		</tr>
		<tr id="buyType3">
			<th>사용중인 휴대폰</th>
			<td><input type="text" name="change_phoneno" id="change_phoneno" /></td>			
			<th>휴대폰 일련번호</th>
			<td><input type="text" name="change_serialno" id="change_serialno" /></td>
		</tr>
		<tr id="buyType3">
			<th>휴대폰 회수여부</th>
			<td>
				<input type="radio" name="change_collect_yn" id="change_collect_yn1" /><label for="change_collect_yn1">회수</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="radio" name="change_collect_yn" id="change_collect_yn2" /><label for="change_collect_yn2">미회수</label>
				사유<input type="text" name="change_call_reason" id="change_call_reason" />
			</td>
			<th> 휴대폰 반납여부 </th>
			<td><select name="change_return_cd" id="change_return_cd"></select></td>
		</tr>
		<tr>
			<td colspan="4"><h4 class="subTitle"><span>납부정보</span></h4></td>
		</tr>
		<tr>						
			<th>납부 정보</th>
			<td><span id="payment_cd_list"></span></td>
			<th>청구서 종류</th>
			<td><select name="billkind_cd" id="billkind_cd"></select></td>
		</tr>					
		<tr id="paymentType1"> 
			<th>은행정보</th>
			<td>  
				<select>
					<option value="0">지급 은행</option>
					<option value="1">한국은행</option>
					<option value="2">산업은행</option>
					<option value="3">기업은행</option>
					<option value="4">외환은행</option>
					<option value="5">국민은행</option>
					<option value="6">수협중앙회</option>
					<option value="7">한국수출입은행</option>
					<option value="8">농협</option>
					<option value="9">우리은행</option>
					<option value="10">조흥은행</option>
					<option value="11">제일은행</option>
					<option value="12">서울은행</option>
					<option value="13">신한은행</option>
					<option value="14">광주은행</option>
					<option value="15">새마을금고</option>
					<option value="16">신협</option>
					<option value="17">하나은행</option>
					<option value="18">우체국</option>
					<option value="19">전북은행</option>
					<option value="20">대구은행</option>
					<option value="21">부산은행</option>
					<option value="22">씨티은행</option>
					<option value="23">경남은행</option>
					<option value="24">제주은행</option>
					<option value="25">스위스 저축은행</option>
					<option value="26">축협</option>
					<option value="27">현대증권</option>
					<option value="28">미래에셋증권</option>
					<option value="29">대우증권</option>
					<option value="30">삼성증권</option>
					<option value="31">한국투자증권</option>
					<option value="32">우리투자증권</option>
					<option value="33">하이투자증권</option>
					<option value="34">에이치엠씨증권</option>
					<option value="35">에스케이증권</option>
					<option value="36">한화증권</option>
					<option value="37">하나대투증권</option>
					<option value="38">신한금융투자</option>
					<option value="39">메리츠증권</option>
					<option value="40">유진투자증권</option>
					<option value="41">신영증권</option>
					<option value="42">교보증권</option>
					<option value="43">산림조합</option>
					<option value="44">부국증권</option>
					<option value="45">대신증권</option>
					<option value="46">동부증권</option>
					<option value="47">이트레이드증권</option>
					<option value="48">솔로몬투자증권</option>
					<option value="49">NH투자증권</option>
					<option value="50">LIG투자증권</option>
					<option value="51">키움증권</option>
					<option value="53">JP 모간</option>
					<option value="54">도이치뱅크</option>
					<option value="55">뱅크오브아메리카</option>
					<option value="56">동양종합금융증권</option>
					<option value="57">미쓰비시도쿄UFJ</option>
				</select>
				계좌번호<input type="text" />
			<th>예금주</th>
			<td>
				<input type="text" />
			</td>
		</tr>
		<tr id="paymentType1"> 
			<th> 고객과 관계</th>
			<td><input type="text" /></td>
			<th>은행 주민번호</th>
			<td>
				<input type="text" />-
				<input type="text" />
				<input type="checkbox">
				<span class='blue'>* 위 정보와 동일</span>
			</td>
		</tr>
		<tr id="paymentType2">
			<th>카드정보</th>
			<td>
				<select>
					<option value="0" selected>카드사</option>
					<option value="1">KB카드</option>
					<option value="2">비씨카드</option>
					<option value="3">우리카드</option>
					<option value="4">하나(BC)카드</option>
					<option value="5">농협(BC)카드</option>
					<option value="6">삼성카드</option>
					<option value="7">하나카드</option>
					<option value="8">한미카드</option>
					<option value="9">외환카드</option>
					<option value="10">현대카드</option>
					<option value="11">신한카드</option>
					<option value="12">롯데카드</option>
					<option value="13">씨티카드</option>
					<option value="14">광주카드</option>
					<option value="15">산업은행카드</option>
					<option value="16">수협카드</option>
					<option value="17">전북은행카드</option>
					<option value="18">제주은행카드</option>
				</select>
				카드번호 <input type="text" />
			</td>
			<th>카드 유효기간</th>
			<td><input type="text" /><span class='blue'>* 2010년 06월</span></td>
		</tr>
		<tr>
			<th>사은품</th>
			<td colspan="3">
				<input type="text" name="gift_nm" id="gift_nm" />
				금액<input type="text" name="gift_amt" id="gift_amt" />원
				지급예정일<input type="text" name="gipt_exp_dt" id="gipt_exp_dt" readonly />
				<span class="button black"><button type="button" id="gipt_exp_dt_btn">달력</button></span>
				<select name="gift_exp_cd" id="gift_exp_cd"></select>
			</td>
		</tr>
		<tr>
			<th>요금 감면</th>
			<td colspan="3"><span id="price_reduce_cd_list"></span></td>
		</tr>
		<tr>
			<td colspan="4"><h4 class="subTitle"><span>성인인증방식</span></h4></td>
		</tr>
		<tr>
			<th>인증방식</th>
			<td colspan="3"><span id="adultauth_cd_list"></span></td>
		</tr>
		<tr id="adultAuth1">
			<th>휴대폰 번호</th>
			<td><input type="text" name="adultauth_phone" id="adultauth_phone" /></td>
			<th>통신사</th>
			<td><select name="adultauth_telco" id="adultauth_telco"></select></td>
		</tr>
		<tr id="adultAuth2">
			<th>신용카드 인증</th>
			<td>
				<select>
					<option value="0" selected >:: 카드사::</option> 
					<option value="1">KB카드</option>
					<option value="2">비씨카드</option>
					<option value="3">우리카드</option>
					<option value="4">하나(BC)카드</option>
					<option value="5">농협(BC)카드</option>
					<option value="6">삼성카드</option>
					<option value="7">하나카드</option>
					<option value="8">한미카드</option>
					<option value="9">외환카드</option>
					<option value="10">현대카드</option>
					<option value="11">신한카드</option>
					<option value="12">롯데카드</option>
					<option value="13">씨티카드</option>
					<option value="14">광주카드</option>
					<option value="15">산업은행카드</option>
					<option value="16">수협카드</option>
					<option value="17">전북은행카드</option>
					<option value="18">제주은행카드</option>
				</select>
				카드번호<input type="text" name="adultauth_cardno" id="adultauth_cardno" />
			</td>
			<th>유효기간</th>
			<td>
				<input type="text" name="adultauth_cardvalid" id="adultauth_cardvalid" />
				비밀번호<input type="text" name="adultauth_cardpass" id="adultauth_cardpass" />**
			</td>
		</tr>
		<tr id="lawer">
			<td colspan="4"><h4 class="subTitle"><span>법정대리인 정보 (미성년자)</span></h4></td>
		</tr>
		<tr id="lawer">						
			<th>대리인명</th>
			<td><input type="text" /></td>
			<th>주민번호</th>
			<td> 
				<input type="text" />-
				<input type="text" />
			</td>
		</tr>		
		<tr id="lawer">
			<th>연락처</th>
			<td>
				<input type="text" />
				<font color="blue">* 02-000-0000</font>
			</td>				
			<th>가입자 관계</th>
			<td><input type="text" /></td>
		</tr>	
		<tr>
			<td colspan="4"><h4 class="subTitle"><span>첨부파일</span></h4></td>
		</tr>
		<tr>
			<th>첨부파일1</th>
			<td><input type="file" name="g_file1" size="20" /></td>
			<th>첨부 파일2</th>
			<td><input type="file" name="g_file2" size="20" /></td>
		</tr>
		<tr> 
			<th>첨부 파일3</th>
			<td><input type="file" name="g_file3" size="20" /></td>
			<th>첨부 파일4</th>
			<td><input type="file" name="g_file4" size="20" /></td>
		</tr>
		<tr> 
			<th>첨부파일5</th>
			<td><input type="file" name="g_file5" size="20" /></td>
			<th>첨부 파일6</th>
			<td><input type="file" name="g_file6" size="20" /></td>
		</tr>
		<tr> 
			<th>첨부 파일7</th>
			<td><input type="file" name="g_file7" size="20" /></td>
			<th>첨부 파일8</th>
			<td><input type="file" name="g_file8" size="20" /></td>
		</tr>
		<tr>
			<th>기타 내용</th>
			<td colspan="4"><textarea name="g_bigo" rows=5 class="txtbox" cols="60"></textarea></td>
		</tr>
		<tr>
			<td colspan="4"><span class="button black"><button type="button" id="save">저장</button></span></td>
		</tr>
	</table>
</form>

<div id="indicator"></div>
<script type="text/javascript">
$(document).ready(function(){
	//Datepicker
	getDatepicker('ship_date', 'ship_date_btn');//배송일자
	getDatepicker('input_dttm', 'input_dttm_btn');//접수일자
	getDatepicker('open_dt', 'open_dt_btn');//개통일자
	getDatepicker('openhope_dt', 'openhope_dt_btn');//개통희망일
	getDatepicker('cancel_dt', 'cancel_dt_btn');//해약일자
	getDatepicker('gipt_exp_dt', 'gipt_exp_dt_btn');//사은품 지금 예정일
	
	//공통 코드
	getSelectCodeList('cust_auth', 'cust_auth_cd');//고객인증
	getSelectCodeList('telco', 'telco_cd');//상품선택-통신사
	getSelectCodeList('init', 'init_cd');//가입비
	getSelectCodeList('open_stat', 'open_stat_cd');//개통상태
	getSelectCodeList('receiv', 'receiv_cd');//채권료
	getSelectCodeList('telco', 'move_telco');//번호이동-통신사
	getSelectCodeList('usim', 'usim_cd');//유심정보
	getSelectCodeList('move_auth', 'move_auth_cd');//번호이동인증
	getSelectCodeList('chg_return', 'change_return_cd');//휴대폰 반납여부
	getSelectCodeList('billkind', 'billkind_cd');//청구서 종류
	getSelectCodeList('gift_exp', 'gift_exp_cd');//사은품 지급방법
	getSelectCodeList('telco', 'adultauth_telco');//성인인증방식-통신사
	
	getRadioCodeList('cust_kind', 'cust_kind_list');//고객종류
	getRadioCodeList('buy_type', 'buy_type_list');//구매유형
	getRadioCodeList('payment', 'payment_cd_list');//납부정보
	getRadioCodeList('price_reduce', 'price_reduce_cd_list');//요금감면
	getRadioCodeList('audlt_auth', 'adultauth_cd_list');//성인인증방식
	
	//display none
	$('#lawer').css('display', 'none');//고객종류
	$('#buyType2, #buyType3').css('display', 'none');//구매유형
	$('#paymentType2').css('display', 'none');//납부방법
	$('#adultAuth2').css('display', 'none');//성인인증방법
});


$(function(){
	
	//고객 종류
	$('input:[name=cust_kind]').live('change', function(){
		clickCustKind($('input:[name=cust_kind]:checked').val());
	});
	//구매유형
	$('input:[name=buy_type]').live('change', function(){
		clickBuyType($(this).val());
	});
	//납부정보
	$('input:[name=payment_cd]').live('change', function(){
		clickPaymentType($('input:[name=payment_cd]:checked').val());
	});
	//성인인증방법
	$('input:[name=adultauth_cd]').live('change', function(){
		clickAdultAuthChk($('input:[name=adultauth_cd]:checked').val());
	});
	
	
	//주소 검색 팝업
	openPop('addr_search', 'address/zipcode.jsp', setAddrData);//주소
	openPop('ship_addr_search', 'address/zipcode.jsp', setShipAddrData);//배송지 주소
	
	//주소정보 동일 클릭 이벤트
	$('#address_same').click(function(){
		var chk = $('#address_same:checked').val();
		if(chk == 'on') {
			var zipcd = $('#zipcd').val();
			var addr = $('#addr').val();
			$('#ship_zipcd').val(zipcd);
			$('#ship_addr').val(addr);
		}else {
			$('#ship_zipcd').val('');
			$('#ship_addr').val('');
		}
	});
	
	//input text focusing
	//$("input:[type=text], textarea, select")
	//	.bind('focus', function(){
	//		$(this).addClass('focusing');
	//	})
	//	.bind('blur', function(){
	//		$(this).removeClass('focusing');
	//	});
	//numeric type
	//$('#ship_price, #init_amt, #receiv_amt, #agree_free_amt, #realsale_amt, #usim_amt, #monthdisc_amt, #gift_amt').keyup(function(event) {
	//	$(this).toPrice().css("text-align","right");
	//});
});

//고객 종류 선택시 이벤트 처리
function clickCustKind(type) {
	if(type == '0004') {
		$('tr').filter('#lawer').show();
	}else {
		$('tr').filter('#lawer').hide();
	}
}

//구매유형 선택시 이벤트 처리
function clickBuyType(type) {
	if(type == '0001' || type == '0004' || type == '0005') {
		$('tr').filter('#buyType1').show();
		$('tr[id^="buyType"]').not('#buyType1').hide();
	}else if (type == '0002') {
		$('tr').filter('#buyType2').show();
		$('tr[id^="buyType"]').not('#buyType2').hide();
	}else if(type == '0003') {
		$('tr').filter('#buyType3').show();
		$('tr[id^="buyType"]').not('#buyType3').hide();
	}
}

//납부정보 선택시 이벤트 처리
function clickPaymentType(type) {
	if(type == '0001') {
		$('tr').filter('#paymentType1').show();
		$('tr').filter('#paymentType2').hide();
	}else if(type == '0002') {
		$('tr').filter('#paymentType2').show();
		$('tr').filter('#paymentType1').hide();
	}else {
		$('tr[id^="paymentType"]').hide();
	}
}

//성인인증방법 선택시 이벤트 처리
function clickAdultAuthChk(type) {
	if(type == '0001') {
		$('tr').filter('#adultAuth1').show();
		$('tr').filter('#adultAuth2').hide();
	}else {
		$('tr').filter('#adultAuth1').hide();
		$('tr').filter('#adultAuth2').show();
	}
}

//주소 데이타 셋팅!!
function setAddrData(data) {
	$('#zipcd').val(data.addr1);
	$('#addr').val(data.addr2 + ' ' + data.addr3);
}

//배송지 주소 데이타 셋팅!!
function setShipAddrData(data) {
	$('#ship_zipcd').val(data.addr1);
	$('#ship_addr').val(data.addr2 + ' ' + data.addr3);
	$('#address_same').attr('checked', false);//위 주소정보와 동일  체크 해제
}
</script>
</body>
</html>
